﻿<UserControl x:Class="VisualRibbonEditor.ButtonDetails"
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"  
	mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="620"
	xmlns:sdk="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Input.Toolkit">
		<Grid x:Name="LayoutRoot" Background="White" Margin="10">
		<Grid.RowDefinitions>
			<RowDefinition Height="Auto" />
			<RowDefinition Height="Auto" />
			<RowDefinition Height="Auto" />
			<RowDefinition Height="Auto" />
			<RowDefinition Height="Auto" />
			<RowDefinition Height="Auto" />
			<RowDefinition Height="Auto" />
			<RowDefinition Height="Auto" />
			<RowDefinition Height="Auto" />
			<RowDefinition Height="Auto" />
		</Grid.RowDefinitions>
		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="Auto" MinWidth="95" />
			<ColumnDefinition Width="Auto" MinWidth="400" MaxWidth="600" />
			<ColumnDefinition Width="Auto" />
		</Grid.ColumnDefinitions>

		<TextBlock Text="Language: " Grid.Row="0" Grid.Column="0" VerticalAlignment="Center" Foreground="#222222" Height="21" />
		<ComboBox Name="LanguageId" Grid.Row="0" Grid.Column="1"  SelectionChanged="LanguageId_SelectionChanged" Margin="3" MinWidth="200" Height="21" IsReadOnly="True" />
			
		<TextBlock Text="Id:" Grid.Row="1" Grid.Column="0" VerticalAlignment="Center" />
		<TextBox Name="IdTextBox" Grid.Row="1" Grid.Column="1" MinWidth="200" Margin="3" IsReadOnly="True" />

		<TextBlock Text="Button Label:" Grid.Row="2" Grid.Column="0" VerticalAlignment="Center" />
		<TextBox Name="LabelTextBox" Grid.Row="2" Grid.Column="1" MinWidth="200" Margin="3" LostFocus="LabelTextBox_LostFocus" />

		<TextBlock Text="Tooltip Title:" Grid.Row="3" Grid.Column="0" VerticalAlignment="Center" />
		<TextBox Name="ToolTipTitleTextBox" Grid.Row="3" Grid.Column="1" MinWidth="200" Margin="3" LostFocus="ToolTipTitleTextBox_LostFocus" />

		<TextBlock Text="Tooltip Text:" Grid.Row="4" Grid.Column="0" VerticalAlignment="Center" />
		<TextBox Name="TooltipDescriptionTextBox" Grid.Row="4" Grid.Column="1" MinWidth="200" Margin="3" LostFocus="TooltipDescriptionTextBox_LostFocus" AcceptsReturn="True" />

		<TextBlock Text="Template Alias:" Grid.Row="5" Grid.Column="0" VerticalAlignment="Center" />
		<ComboBox Name="SizePicker" Grid.Row="5" Grid.Column="1" MinWidth="200" Margin="3" SelectedValuePath="Tag" ToolTip="Template Alias determines the position and size of a control" />

		<TextBlock Text="Show Sections" Foreground="Blue" TextDecorations="Underline" FontSize="10" Grid.Row="5" Grid.Column="3" VerticalAlignment="Center"
				   Margin="3" Cursor="Hand" Name="ShowSectionsLinkButton" Focusable="True" KeyDown="ShowSectionsLinkButton_KeyDown"
				   MouseLeftButtonDown="ShowSectionsLinkButton_MouseLeftButtonDown" ToolTip="Show/hide lines on the ribbon indicating where the template sections are. Use this to help determine which template alias to use." />

		<TextBlock Text="Sequence:" Grid.Row="6" Grid.Column="0" VerticalAlignment="Center" />
		<TextBox Name="PositionTextBox" Grid.Row="6" Grid.Column="1" ToolTip="Sequence determines the order of controls that have the same Template Alias" 
				 MinWidth="200" Margin="3" LostFocus="PositionTextBox_LostFocus" />
		<StackPanel Grid.Row="6" Grid.Column="2" Orientation="Horizontal" >
			<Button Name="MoveLeft" Content=" &lt; " Height="20" ToolTipService.ToolTip="Decrease Sequence Number" Margin="2" Click="MoveLeft_Click" />
			<Button Name="MoveRight" Content=" &gt; " Height="20" ToolTipService.ToolTip="Increase Sequence Number" Margin="2" Click="MoveRight_Click" />
		</StackPanel>

		<TextBlock Text="16x16 Image:" Grid.Row="7" Grid.Column="0" VerticalAlignment="Center" />
		<sdk:AutoCompleteBox Name="Image16TextBox" Grid.Row="7" Grid.Column="1" MinWidth="200" Margin="3" LostFocus="Image16TextBox_LostFocus" />
		<TextBox Name="Image16TextBoxReadOnly" Grid.Row="7" Grid.Column="1" MinWidth="200" Margin="3" Visibility="Collapsed" IsReadOnly="True" />
		<Button Name="BrowseForImage16" Content="..." Grid.Row="7" Grid.Column="2" Height="20" ToolTipService.ToolTip="Select an image..." HorizontalAlignment="Left" Margin="2" Width="20" Click="BrowseForImage16_Click" />
			
		<TextBlock Text="32x32 Image:" Grid.Row="8" Grid.Column="0" VerticalAlignment="Center" />
		<sdk:AutoCompleteBox  Name="Image32TextBox" Grid.Row="8" Grid.Column="1" MinWidth="200" Margin="3" LostFocus="Image32TextBox_LostFocus" />
		<TextBox Name="Image32TextBoxReadOnly" Grid.Row="8" Grid.Column="1" MinWidth="200" Margin="3" Visibility="Collapsed" IsReadOnly="True" />
		<Button Name="BrowseForImage32" Content="..." Grid.Row="8" Grid.Column="2" Height="20" ToolTipService.ToolTip="Select an image..." HorizontalAlignment="Left" Margin="2" Width="20" Click="BrowseForImage32_Click" />

		<TextBlock Grid.Row="9" Grid.Column="1" Name="ReadOnlyButtonWarining" FontSize="14" Foreground="Brown" FontStyle="Italic" Margin="3"
			Text="System and managed-solution buttons cannot be edited." Visibility="Collapsed" />
	</Grid>
</UserControl>